<script setup>
import {useRouter} from "vue-router";
import {HOME_URL} from "@/config/index";

// 路由跳转
const router = useRouter();
const handleHomePage = () => {
  router.push({path: HOME_URL});
};
</script>

<template>
  <div id="box">
    <div class="sky-top" id="banner"></div>
    <div class="sky-bottom">
      <div class="sky-text1">500</div>
      <div class="sky-text2">服务器好像开小差了！请稍后试试...😱</div>
      <br/>
      <el-button type="primary" plain @click="handleHomePage">返回首页</el-button>
    </div>
  </div>
</template>

<style scoped lang="scss">
#box {
  overflow: hidden;
}

#banner {
  margin-top: 60px;
  background: url("@/assets/images/error/500.png") no-repeat;
  background-size: 100%;
}

.sky-top {
  width: 600px;
  height: 500px;
  margin: 0 auto;
}

.sky-bottom {
  height: 300px;
  margin-top: 20px;
  text-align: center;
}

.sky-text1 {
  font-size: 46px;
  font-weight: bold;
}

.sky-text2 {
  padding-top: 30px;
  font-family: YouYuan;
  font-size: 24px;
  font-weight: 600;
}
</style>
